﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplication2.Models.DanhSachDaiLyModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    DanhSachDaiLy
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class='Khung'>Danh sách đại lý</div> <br />
<table width="100%" border="1" bordercolor="#999999" cellspacing="0" cellpadding="0" style="border-collapse: collapse">
    <tr align="center" style="background-color: #F0E68C;color: #AC2A2A">
        <td>Tên đại lý</td>
        <td>Địa chỉ</td>
        <td>Điện thoại</td>
    </tr>
    <% foreach (var daiLy in Model.DaiLyList)
       {
    %>
    <tr align="center">
        <td><%=daiLy.TenDaiLy %></td>
        <td><%=daiLy.DiaChi %></td>
        <td><%=daiLy.DienThoai %></td>
    </tr>
    <%
       } %>
</table>

</asp:Content>
